package router

import (
	v1 "gin-vue-admin/api/v1"

	"github.com/gin-gonic/gin"
)

func InitIdCardRouter(Router *gin.RouterGroup) {
	IdCardRouter := Router.Group("idCard")
	// IdCardRouter := Router.Group("idCard").Use(middleware.JWTAuth()).Use(middleware.CasbinHandler()).Use(middleware.OperationRecord())
	{
		IdCardRouter.POST("createIdCard", v1.CreateIdCard)             // 新建IdCard
		IdCardRouter.DELETE("deleteIdCard", v1.DeleteIdCard)           // 删除IdCard
		IdCardRouter.DELETE("deleteIdCardByIds", v1.DeleteIdCardByIds) // 批量删除IdCard
		IdCardRouter.PUT("updateIdCard", v1.UpdateIdCard)              // 更新IdCard
		IdCardRouter.GET("findIdCard", v1.FindIdCard)                  // 根据ID获取IdCard
		IdCardRouter.GET("getIdCardList", v1.GetIdCardList)            // 获取IdCard列表
	}
}
